package com.lyf.learn.atsgg.spring.ioc.bean;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/25
 * @VERSION 1.0
 * @DESC
 */
public class CollectionBean {
    private String[] strings;
    private List list;
    private Map map;
    private Set set;

    public CollectionBean(String[] strings, List list, Map map, Set set) {
        this.strings = strings;
        this.list = list;
        this.map = map;
        this.set = set;
    }

    public CollectionBean() {
    }

    public String[] getStrings() {
        return strings;
    }

    public void setStrings(String[] strings) {
        this.strings = strings;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public Map getMap() {
        return map;
    }

    public void setMap(Map map) {
        this.map = map;
    }

    public Set getSet() {
        return set;
    }

    public void setSet(Set set) {
        this.set = set;
    }

    // 测试方法--调用--
    public void print(){
        System.out.println(Arrays.toString(this.strings));
        System.out.println(set);
        System.out.println(list);
        System.out.println(map);
    }

}
